﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ContaPlanner.Models
{
    [Table("Bancos")]
    public class Banco
    {
        [Key]
        public int BancoId { get; set; }
        [Required]
        public string Nombre { get; set; }

        public override string ToString() { return Nombre; }

        public virtual List<Cuenta> Cuentas { get; set; }
    }
}
